package com.dudy.simpleFactory;

import java.text.SimpleDateFormat;

/**
 * @author <a href="mailto:wb-zhaojunwei@alibaba-inc.com">wb-zhaojunwei</a>
 * @version 1.0
 * @Description
 * @Since 2016/5/26
 */
public class MainTest {
    public static void main(String[] args) {
        SimpleFactory simpleFactory = new SimpleFactory();
        Computer computer = new Computer();
        computer.setOutput(simpleFactory.getOutput());
        computer.keyIn("asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf");
        computer.keyIn("asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf");
        computer.keyIn("asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf");
        computer.print();
    }
}
